package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * GlryShjz generated by hbm2java
 */
@Entity
@Table(name = "glry_shjz")
public class GlryShjz implements java.io.Serializable
{

    private Long id;
    private int version;
    private Glry glry;
    private String username;
    private String operation;
    private Date optdate;
    private String shjz;
    private String shjzsj;
    private Short xh;

    public GlryShjz()
    {
    }

    public GlryShjz( Long id )
    {
        this.id = id;
    }

    public GlryShjz( Long id,
                     Glry glry,
                     String username,
                     String operation,
                     Date optdate,
                     String shjz,
                     String shjzsj,
                     Short xh )
    {
        this.id = id;
        this.glry = glry;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.shjz = shjz;
        this.shjzsj = shjzsj;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "glr_ID")
    public Glry getGlry()
    {
        return this.glry;
    }

    public void setGlry( Glry glry )
    {
        this.glry = glry;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "shjz", length = 500)
    public String getShjz()
    {
        return this.shjz;
    }

    public void setShjz( String shjz )
    {
        this.shjz = shjz;
    }

    @Column(name = "shjzsj", length = 20)
    public String getShjzsj()
    {
        return this.shjzsj;
    }

    public void setShjzsj( String shjzsj )
    {
        this.shjzsj = shjzsj;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
